var md5 = require('md5');
var fs = require('fs');
var http = require('http');
var qs = require('querystring');

var volts = 856;
var i = 100000;
var code = [];
// http.get('http://www.qlcoder.com/train/handsomerank?_token=18zeedizkxJwnNSvJ7jiyJFaWPvOBCCohXIYORkt&user=990&checkcode=' + 2335197);
while (volts < 1002) {
	var key = '20160513990' + volts + i;
	var _md5 = md5(key);
	if (_md5.indexOf('000000') > -1 && _md5.substring(0, 6) == '000000') {
		http.get('http://www.qlcoder.com/train/handsomerank?_token=18zeedizkxJwnNSvJ7jiyJFaWPvOBCCohXIYORkt&user=990&checkcode=' + i);
		code.push(i);
		console.log(key, _md5, volts, i);
		i = 0;
		volts += 1;
	}
	i++;
}